﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link href="bootstrap2.3.2/css/bootstrap.min.css" rel="stylesheet" />
    <title></title>
    <link href="styles/Common.css" rel="stylesheet" />
    <link href="styles/Index.css" rel="stylesheet" />
	<link href="styles/Index2.css" rel="stylesheet" />
</head>
<body>
    <jsp:include page="header.jsp"/>


    <div class="nav">

        <ul class="breadcrumb">
            <li>
                <img src="images/32/5025_networking.png" />
            </li>
            <li><a href="index.jsp">首页</a> <span class="divider">>></span></li>
            <li class="active">药品管理</li>
        </ul>
    </div>



    <div class="container-fluid content">
        <div class="row-fluid">
            <div class="span2 content-left">
                <div class="accordion">
                    <div class="accordion-group">
                        <div class="accordion-heading">
                            <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
                                <img class="left-icon" src="images/32/5026_settings.png" /><span class="left-title">系统设置</span>
                            </a>
                        </div>
                        <div id="collapseOne" class="accordion-body collapse in">
                            <div class="accordion-inner">
                                 <a href="list.jsp"> <img class="left-icon-child" src="images/32/4962_sitemap.png" /><span class="left-body"> 药品管理</span></a>
                            </div>

                            <div class="accordion-inner">
                              <a href="password.jsp">  <img class="left-icon-child" src="images/32/4992_user.png" /><span class="left-body"> 修改密码</span></a>

                            </div>
                            <div class="accordion-inner">
                              <a href="user?method=loginOut">  <img class="left-icon-child" src="images/32/4958_login.png" /><span class="left-body" > 退出登陆</span></a>

                            </div>
                        </div>
                    </div>
                </div>

            </div>

            <div class="span10 content-right">
               <div class="container-fluid">
            <div class="row" style="padding-top:20px">
                <form class="form-horizontal" action="product?method=alter" method="post">
                    <div class="control-group">
                        <label class="control-label">药品名称</label>
                        <div class="controls">
                            <input type="hidden" name="id" value="${product.id}" readonly/>
                            <input class="form_input" type="text" name="name" value="${product.pname}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">分类</label>
                        <div class="controls">
                            <select name="cid">
                                <c:forEach items="${categoryList}" var="b">
                                    <option value="${b.id}"
                                            <c:if test="${product.category.id == b.id}">selected</c:if>
                                    >${b.name}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">进货时间</label>
                        <div class="controls">
                            <input class="form_input" type="date" name="date" value="<fmt:formatDate value="${product.date}" pattern="yyyy-MM-dd"/>">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">厂家</label>
                        <div class="controls">
                            <input class="form_input" type="text" name="vender" value="${product.vender}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">单价</label>
                        <div class="controls">
                            <input class="form_input" type="text" name="price" value="${product.price}"/>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">处方药</label>
                        <div class="controls">
                            <input type="radio" name="type" size="40" value="1" <c:if test="${product.type==1}">checked</c:if>/> 处方药
                            <input type="radio" name="type" size="40" value="0"  <c:if test="${product.type==0}">checked</c:if>/> 非处方药
                        </div>
                    </div>
                    <div class="control-group"><input type="submit" class="btn btn-success" value="提交"></div>
                </form>
           
        </div>
    </div>
            </div>
        </div>
    </div>


    <div class="clearfix"></div>
    <div class="foot"></div>
    <script src="scripts/jquery-1.9.1.min.js"></script>
    <script src="bootstrap2.3.2/js/bootstrap.min.js"></script>
    <script src="scripts/Index.js"></script>
	<div style="text-align:center;">
<p>来源:<a href="http://www.mycodes.net/" target="_blank">源码之家</a></p>
</div>

</body>
</html>
